3.4.13 \(\int \frac {1}{(2-2 x) (2 x-x^2)^{3/2}} \, dx\) [313]

Optimal. Leaf size=36 \[ -\frac {1}{2 \sqrt {2 x-x^2}}+\frac {1}{2} \tanh ^{-1}\left (\sqrt {2 x-x^2}\right ) \]

[Out]

1/2*arctanh((-x^2+2*x)^(1/2))-1/2/(-x^2+2*x)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {701, 702, 213} \begin {gather*} \frac {1}{2} \tanh ^{-1}\left (\sqrt {2 x-x^2}\right )-\frac {1}{2 \sqrt {2 x-x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/((2 - 2*x)*(2*x - x^2)^(3/2)),x]

[Out]

-1/2*1/Sqrt[2*x - x^2] + ArcTanh[Sqrt[2*x - x^2]]/2

Rule 213

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[b, 2])^(-1))*ArcTanh[Rt[b, 2]*(x/Rt[-a, 2])]
, x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])

Rule 701

Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[2*c*(d + e*x)^(m + 1
)*((a + b*x + c*x^2)^(p + 1)/(e*(p + 1)*(b^2 - 4*a*c))), x] - Dist[2*c*e*((m + 2*p + 3)/(e*(p + 1)*(b^2 - 4*a*
c))), Int[(d + e*x)^m*(a + b*x + c*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0]
 && EqQ[2*c*d - b*e, 0] && NeQ[m + 2*p + 3, 0] && LtQ[p, -1] &&  !GtQ[m, 1] && RationalQ[m] && IntegerQ[2*p]

Rule 702

Int[1/(((d_) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[4*c, Subst[Int[1/(b^2*e
 - 4*a*c*e + 4*c*e*x^2), x], x, Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0]
 && EqQ[2*c*d - b*e, 0]

Rubi steps

\begin {align*} \int \frac {1}{(2-2 x) \left (2 x-x^2\right )^{3/2}} \, dx &=-\frac {1}{2 \sqrt {2 x-x^2}}+\int \frac {1}{(2-2 x) \sqrt {2 x-x^2}} \, dx\\ &=-\frac {1}{2 \sqrt {2 x-x^2}}-4 \text {Subst}\left (\int \frac {1}{-8+8 x^2} \, dx,x,\sqrt {2 x-x^2}\right )\\ &=-\frac {1}{2 \sqrt {2 x-x^2}}+\frac {1}{2} \tanh ^{-1}\left (\sqrt {2 x-x^2}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 49, normalized size = 1.36 \begin {gather*} -\frac {1+2 \sqrt {-2+x} \sqrt {x} \tan ^{-1}\left (1+\sqrt {-2+x} \sqrt {x}-x\right )}{2 \sqrt {-((-2+x) x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/((2 - 2*x)*(2*x - x^2)^(3/2)),x]

[Out]

-1/2*(1 + 2*Sqrt[-2 + x]*Sqrt[x]*ArcTan[1 + Sqrt[-2 + x]*Sqrt[x] - x])/Sqrt[-((-2 + x)*x)]

________________________________________________________________________________________

Maple [A]
time = 0.53, size = 29, normalized size = 0.81

method result size
risch \(-\frac {1}{2 \sqrt {-x \left (x -2\right )}}+\frac {\arctanh \left (\frac {1}{\sqrt {-\left (x -1\right )^{2}+1}}\right )}{2}\) \(26\)
default \(-\frac {1}{2 \sqrt {-\left (x -1\right )^{2}+1}}+\frac {\arctanh \left (\frac {1}{\sqrt {-\left (x -1\right )^{2}+1}}\right )}{2}\) \(29\)
trager \(\frac {\sqrt {-x^{2}+2 x}}{2 x \left (x -2\right )}+\frac {\ln \left (\frac {\sqrt {-x^{2}+2 x}+1}{x -1}\right )}{2}\) \(45\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(2-2*x)/(-x^2+2*x)^(3/2),x,method=_RETURNVERBOSE)

[Out]

-1/2/(-(x-1)^2+1)^(1/2)+1/2*arctanh(1/(-(x-1)^2+1)^(1/2))

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 45, normalized size = 1.25 \begin {gather*} -\frac {1}{2 \, \sqrt {-x^{2} + 2 \, x}} + \frac {1}{2} \, \log \left (\frac {2 \, \sqrt {-x^{2} + 2 \, x}}{{\left | x - 1 \right |}} + \frac {2}{{\left | x - 1 \right |}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-2*x)/(-x^2+2*x)^(3/2),x, algorithm="maxima")

[Out]

-1/2/sqrt(-x^2 + 2*x) + 1/2*log(2*sqrt(-x^2 + 2*x)/abs(x - 1) + 2/abs(x - 1))

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 79 vs. \(2 (28) = 56\).
time = 1.32, size = 79, normalized size = 2.19 \begin {gather*} \frac {{\left (x^{2} - 2 \, x\right )} \log \left (\frac {x + \sqrt {-x^{2} + 2 \, x}}{x}\right ) - {\left (x^{2} - 2 \, x\right )} \log \left (-\frac {x - \sqrt {-x^{2} + 2 \, x}}{x}\right ) + \sqrt {-x^{2} + 2 \, x}}{2 \, {\left (x^{2} - 2 \, x\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-2*x)/(-x^2+2*x)^(3/2),x, algorithm="fricas")

[Out]

1/2*((x^2 - 2*x)*log((x + sqrt(-x^2 + 2*x))/x) - (x^2 - 2*x)*log(-(x - sqrt(-x^2 + 2*x))/x) + sqrt(-x^2 + 2*x)
)/(x^2 - 2*x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {1}{- x^{3} \sqrt {- x^{2} + 2 x} + 3 x^{2} \sqrt {- x^{2} + 2 x} - 2 x \sqrt {- x^{2} + 2 x}}\, dx}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-2*x)/(-x**2+2*x)**(3/2),x)

[Out]

-Integral(1/(-x**3*sqrt(-x**2 + 2*x) + 3*x**2*sqrt(-x**2 + 2*x) - 2*x*sqrt(-x**2 + 2*x)), x)/2

________________________________________________________________________________________

Giac [A]
time = 1.30, size = 49, normalized size = 1.36 \begin {gather*} \frac {\sqrt {-x^{2} + 2 \, x}}{2 \, {\left (x^{2} - 2 \, x\right )}} - \frac {1}{2} \, \log \left (-\frac {2 \, {\left (\sqrt {-x^{2} + 2 \, x} - 1\right )}}{{\left | -2 \, x + 2 \right |}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-2*x)/(-x^2+2*x)^(3/2),x, algorithm="giac")

[Out]

1/2*sqrt(-x^2 + 2*x)/(x^2 - 2*x) - 1/2*log(-2*(sqrt(-x^2 + 2*x) - 1)/abs(-2*x + 2))

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} -\int \frac {1}{\left (2\,x-2\right )\,{\left (2\,x-x^2\right )}^{3/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/((2*x - 2)*(2*x - x^2)^(3/2)),x)

[Out]

-int(1/((2*x - 2)*(2*x - x^2)^(3/2)), x)

________________________________________________________________________________________